package com.example.cdctestsystem.pojo;

import java.io.Serializable;

public class Answers implements Serializable {
    private Integer id;

    /**
	* 题目表
	*/
    private Question question;

    /**
	* 答案内容
	*/
    private String answerContent;

    /**
	* 1为正确答案，0为错误答案
	*/
    private Boolean trueAnswer;

    /**
	* 1为使用，0为删除
	*/
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Question getQuestion() {
        return question;
    }

    public void setQuestion(Question question) {
        this.question = question;
    }

    public String getAnswerContent() {
        return answerContent;
    }

    public void setAnswerContent(String answerContent) {
        this.answerContent = answerContent;
    }

    public Boolean getTrueAnswer() {
        return trueAnswer;
    }

    public void setTrueAnswer(Boolean trueAnswer) {
        this.trueAnswer = trueAnswer;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", questionId=").append(question);
        sb.append(", answerContent=").append(answerContent);
        sb.append(", trueAnswer=").append(trueAnswer);
        sb.append(", enable=").append(enable);
        sb.append("]");
        return sb.toString();
    }
}